<?php

namespace Biz\Requests\User;

use Lumen\Validation\Rules\MobileRule;
use Lumen\Validation\Validators\RequestValidator;

/**
 * StoreClientRequest.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class StoreClientRequest extends RequestValidator
{
    /**
     * Get custom rules for validator errors.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'email'             => 'required|email|max:255',
            'mobile'            => [
                'required',
                new MobileRule(),
                'max:11',
            ],
            'password'          => 'required|min:5|max:32',
            'verification_code' => 'required|integer|max:999999',
            'contact'           => 'required|max:32',
            'institution'       => 'required|max:128',
            'address'           => 'required|max:255',
        ];
    }
}
